package top.xtcoder.jdcbase.base.entity.system;

import javax.validation.constraints.NotBlank;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.xtcoder.jdcbase.base.entity.BaseEntity;

@Table("pb_sys_config_type")
@Comment("系统配置分类表")
@ApiModel("系统配制分类表")
public class SysConfigType extends BaseEntity {
	
	@Column("type_name")
	@ColDefine(type=ColType.VARCHAR)
	@Comment(value="分类名字")
	@ApiModelProperty(value="分类名字")
	@NotBlank(message = "名字不能为空")
	private String typeName;
	
	@Column("type_sort")
	@ColDefine(type = ColType.INT)
	@Comment(value="显示排序")
	@ApiModelProperty(value="显示排序")
	private int typeSort;

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public int getTypeSort() {
		return typeSort;
	}

	public void setTypeSort(int typeSort) {
		this.typeSort = typeSort;
	}
}
